<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_sn" class="form-control" name="row[order_sn]" type="text" value="{$row.order_sn|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expert_user_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expert_user_id" data-rule="required" data-source="expert/user/index" class="form-control selectpage" name="row[expert_user_id]" type="text" value="{$row.expert_user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fare_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fare_price" class="form-control" step="0.01" name="row[fare_price]" type="number" value="{$row.fare_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Real_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-real_price" class="form-control" step="0.01" name="row[real_price]" type="number" value="{$row.real_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Refund_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-refund_price" class="form-control" step="0.01" name="row[refund_price]" type="number" value="{$row.refund_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_date" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[service_date]" type="text" value="{$row.service_date}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Service_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_time" class="form-control datetimepicker" data-date-format="HH:mm:ss" data-use-current="true" name="row[service_time]" type="text" value="{$row.service_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pay_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:$row.pay_time?datetime($row.pay_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Audit_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-audit_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[audit_time]" type="text" value="{:$row.audit_time?datetime($row.audit_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reach_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reach_address" class="form-control" name="row[reach_address]" type="text" value="{$row.reach_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reach_lng')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reach_lng" class="form-control" name="row[reach_lng]" type="text" value="{$row.reach_lng|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reach_lat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reach_lat" class="form-control" name="row[reach_lat]" type="text" value="{$row.reach_lat|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reach_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-reach_image" class="form-control" size="50" name="row[reach_image]" type="text" value="{$row.reach_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-reach_image" class="btn btn-danger faupload" data-input-id="c-reach_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-reach_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-reach_image" class="btn btn-primary fachoose" data-input-id="c-reach_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-reach_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-reach_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reach_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reach_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[reach_time]" type="text" value="{:$row.reach_time?datetime($row.reach_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_address" class="form-control" name="row[start_address]" type="text" value="{$row.start_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_lng')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_lng" class="form-control" name="row[start_lng]" type="text" value="{$row.start_lng|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_lat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_lat" class="form-control" name="row[start_lat]" type="text" value="{$row.start_lat|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-start_image" class="form-control" size="50" name="row[start_image]" type="text" value="{$row.start_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-start_image" class="btn btn-danger faupload" data-input-id="c-start_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-start_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-start_image" class="btn btn-primary fachoose" data-input-id="c-start_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-start_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-start_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:$row.start_time?datetime($row.start_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Complete_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-complete_address" class="form-control" name="row[complete_address]" type="text" value="{$row.complete_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Complete_lng')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-complete_lng" class="form-control" name="row[complete_lng]" type="text" value="{$row.complete_lng|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Complete_lat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-complete_lat" class="form-control" name="row[complete_lat]" type="text" value="{$row.complete_lat|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Complete_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-complete_image" class="form-control" size="50" name="row[complete_image]" type="text" value="{$row.complete_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-complete_image" class="btn btn-danger faupload" data-input-id="c-complete_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-complete_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-complete_image" class="btn btn-primary fachoose" data-input-id="c-complete_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-complete_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-complete_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Complete_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-complete_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[complete_time]" type="text" value="{:$row.complete_time?datetime($row.complete_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Deteletime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-deteletime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[deteletime]" type="text" value="{:$row.deteletime?datetime($row.deteletime):''}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
